<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[store_id]" value="{$row.store_id|htmlentities}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" placeholder="92#">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$vo['slug']}" {in name="$vo.slug" value="$row.type"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Guns')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guns" class="form-control" name="row[guns]" type="text" value="{$row.guns|htmlentities}" placeholder="油枪号以英文逗号隔开如2,4">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}(加油真实价格):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" min="0" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Chengben_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chengben_price" class="form-control" step="0.01" name="row[chengben_price]" type="number" value="{$row.chengben_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('TJChengben_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tj_chengben_price" class="form-control" step="0.01" name="row[tjchengben_price]" type="number" value="{$row.tjchengben_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Guaji_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guaji_price" class="form-control" step="0.01" name="row[guaji_price]" type="number" value="{$row.guaji_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Original_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-original_price" class="form-control" step="0.01" name="row[original_price]" type="number" value="{$row.original_price|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_max')}【（每升最大优惠）*升数/3=每个坑位的优惠】:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-discount_max" class="form-control" step="0.01" name="row[discount_max]" type="number" value="{$row.discount_max|htmlentities}" >-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
